﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SisocanaFronEnd.Models.FoundPersonViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Make a report
</asp:Content>

<asp:Content ID="ContentCSS" ContentPlaceHolderID="CSSContent" runat="server">
    <script src="<%: Url.Content("~/Scripts/googlemap.js") %>" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>

    <h2>Make a report</h2>
    <div id="containerCenter">
        <div id="leftCenter">
            <% Html.RenderPartial("DisplayMissingPerson", Model.Persona); %>
        </div>
        <div id="rightCenter">
            <h3> Tell us about this person </h3>

            <% Html.BeginForm("FoundPerson", "Person", FormMethod.Post); %>
              
                <%= Html.EditorFor(model => model.Reporte) %>    

                <input type="submit" value="Save information" />
    
            <% Html.EndForm(); %>
        </div>
    </div>
</asp:Content>

<script runat="server">
    protected void Page_PreInit(Object sender, EventArgs e)
    {
        Master.MasterPageFile = Url.Content(ViewBag.Site.dir_master);
        MasterPage UserMaster = Master.Master;
        UserMaster.FindControl("NewsTitleContent").Visible = false;
        UserMaster.FindControl("VideoTitleContent").Visible = false;
        UserMaster.FindControl("ImageTitleContent").Visible = false;
    }
</script>